﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PoemGame.Query
{
    public interface IPlayerInGameQuery
    {
        Task<IEnumerable<PlayerInGameRes>> GetPlayersInGameByGameAsync(Guid gameId);

        Task<IEnumerable<PlayerInGameRes>> GetPlayersInGameByPlayerAsync(Guid playerId);
        Task<IEnumerable<PlayerInGameRes>> GetPlayersInGameByConditionAsync(
            string wherecondition
            );

        Task<IEnumerable<PlayerInGameRes>> GetPagedPlayersInGameByConditionAsync(
            int pageindex,
            int pagesize, 
            string wherecondition, 
            string orderby);

        Task<long> GetPlayersInGameCountByConditionAsync(int pageindex, 
            int pagesize,
            string wherecondition, 
            string orderby);
    }
}
